package com.bangbang.feign;

import com.bangbang.configresult.Result;
import com.bangbang.dto.UserDTO;

import com.bangbang.feign.fallback.UserServiceFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

//   对照yml文件里面的                                 //  找的实现类impl
@FeignClient(value = "springcloud-testOrder-Service",fallback = UserServiceFeignFallback.class)
public interface UserServiceFeign {

    @GetMapping("/test/{TestUserId}")
    Result<UserDTO> selectById(@PathVariable("TestUserId") Integer TestUserId);

}
